class ErrorController < ApplicationController
    def index
        unless @error
            redirect_to :controller => 'index'
        end
    end
end
